package view;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class Login extends Application {
    public Parent parent;

    public Parent getParent() {
        return parent;
    }
    public void setParent(Parent parent) {
        this.parent = parent;
    }

    public void start(Stage stage) throws IOException {
        parent = FXMLLoader.load(getClass().getResource("fxml/Login.fxml"));
        Scene scene = new Scene(parent,600,400);
        stage.setTitle("碎碎念");
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
